package com.shermanzhou.aop.log;

import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author zhouchaoqun
 * @date 2018/9/12 上午9:59
 */
@Component
public class ActionLogHandler {

    public void logWithoutParams(){
        System.out.println("logWithoutParams");
    }

    public void logWithString(String msg) {
        System.out.println("logWithString "+msg);
    }

    public void logWithArray(String[] args) {
        for (String arg : args) {
            System.out.println(arg);
        }
    }

    public void logWithList(List<String> args) {
        for (String arg : args) {
            System.out.println(arg);
        }
    }

    public void logWithObject(ParamObject msg) {
        System.out.println(msg);
    }

}
